import java.util.Random;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Random random = new Random();
        int toGuess = random.nextInt(100);
        Scanner scanner = new Scanner(System.in);
        while (true){
            System.out.println("范围是1-100嗷");
            int guess = scanner.nextInt();
            if (guess < toGuess){
                System.out.println("小了");
            } else if (guess > toGuess) {
                System.out.println("大了");
            }else{
                System.out.println("猜中了");
                break;
            }
        }
    }
}
